package org.jeecg.modules.demo.peihebumenbiao.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class UpdateZhuangtai {
    @Autowired
    private IPeihebumenbiaoService peihebumenbiaoService;
    @Scheduled(cron = "0 52 20 * * ?")
    public void updateZhuangtai() {
        System.out.println("定时任务开始执行");
        peihebumenbiaoService.updateZhouqiZhuangtai();
        System.out.println("定时任务结束执行");
    }
}
